<script setup>
import Child from './Child.vue'
import MyComponent from './MyComponent.vue'
 
const message = '来自父组件的消息'
const handleCustEvent = (msg) => {
  console.log(msg);
}
</script>

<template>
 <div>
    <h2>父组件</h2>
    <p>这是父组件页面</p>
    <my-component :msg='message'></my-component>
    <child @customEvent="handleCustEvent"></child>
 </div>
</template>

<style scoped>

</style>
